Code Monkey home page Code Monkey logo

alchemy-form's People

Contributors

skerit avatar

Watchers

 avatar  avatar  avatar

alchemy-form's Issues

Paginering

Zo is het nu:

elevenways roeldev kumulus 11ways be_chimera_editor_service_index_aft aft-service page =1 aft aft-service sort field = aft aft-service sort dir = (1)

Beter zo:

elevenways roeldev kumulus 11ways be_chimera_editor_service_index_aft aft-service page =1 aft aft-service sort field = aft aft-service sort dir = (2)

  • Toon 50 rows per pagina
  • Toon i.p.v paginanummers: 1-50, 51-100, 101-150 etc.
  • Maak toegankelijker met enkele aria-label's e.a. Zie voorbeeld hieronder.
  • Er staan drie verborgen elementen in de code (<li class="afp-page" hidden=""><a href="#"></a></li>). Is dat normaal?
<nav aria-label="Pagination">
    <ul>
        <li class="afp-first">
            <a href="" aria-label="First page">
                <al-ico type="arrow-left-double" aria-hidden="true"></al-ico>
            </a>
        </li>
        <li class="afp-page afp-active" data-page="1"><a href="">1 - 50</a></li>
        <li class="afp-page" data-page="2"><a href=""">51 - 100</a></li>
        <li class="afp-next">
                <a href="#" aria-label="Next Page">
                    <al-ico type="arrow-right" aria-hidden="true"></al-ico>
                </a>
                <!-- En ook doen voor previous page dus 🙂 -->
        </li>
        <li class="afp-last">
            <a href="" aria-label="Last page">
                <al-ico type="arrow-right-double" aria-hidden="true"></al-ico>
            </a>
        </li>
    </ul>
</nav>

Add off-line data providers

It should be possible to cache certain data on the client side.

Use cases

Selects

Relation selects (Belongs To, HABTM, ...) fetch data from the server. These individual items should be cached so they remain in the localStorage, for example.

Searching in the select should then also look through these cached items in case there is no internet connection.

Adding new data

Sometimes new data is added, but there is no internet connection. In that case, the new data should be cached locally and created as soon as a connection is available.

How?

Some kind of class should be created that is somehow analogous to the Model. A client-side Model instance, kind of.

It should be possible to search, create, update, ... records.

Should this be a part of alchemy itself, or alchemy-form?

Since it's really specific to the browser it should probably be in a plugin, alchemy-form seems reasonable.

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.