Giter VIP home page Giter VIP logo

fluent-form's People

Contributors

bjuppa avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

fluent-form's Issues

Add radio-button block type

RadioSelectBlock implements SelectorControlContract
Creates fieldset with legend

Ideas:

  • put label inside legend for styling?
  • If only one option, display two on & off radio buttons with similar functionality as a checkbox?

Add filtering to input values

We could make it possible to add filters to input values. Values would always be passed through these filters before being used no matter where the value comes from, be it from the input itself or an ancestor.

Examples of use for this would be to transform input to valid datetime strings or implode array values with specified glue.

I think it may only make sense to filter single value inputs, like text inputs etc. Not so sure about checkboxes, radios, or select inputs.

Let's put withValueFilter(callable $callable) into a contract FilterableControlValueContract, implement it with the existing SingleValueInputTrait and apply the filters before returning from `SingleValueInputTrait::getValue()

Methods for setting filters should then be available through InputBlock::withInputValueFilter - but that needs to check if $this->getInputElement() implements FilterableControlValueContract before passing the filter along.

CSS for disabled checkboxes

Add a checkbox disabled css class to the checkboxes label wrapper if the containing checkbox block is disabled

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.