Loading repository data…
Loading repository data…
bhave-abhay / repository
Quick, simple, minimalist JS app framework for browsers
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
QkApp is a micro-framework which, by design, does NOT generate html for you (with minor exception like, for instance, the dialog buttons). Instead, QkApp works like a thin wrapper around the mostly pre-existing html mark-up.
This approach enables the html designer to have full control over the html, and on the other hand, it empowers the front end developer to utilize the designed html pages in their apps with very little additional mark-up that conveys developer's design intentions to QkApp library.
As an example for this difference in design approach, let us consider the common use case of "Forms"
Unlike many libraries that provide 'forms' which take "form fields specifications" as input, and render the resulting html form themselves, QkApp provides jQuery widget to turn an html element into a QkForm. Now, just like any other jQuery object, you can play with it as usual. QkForm does not generate forms for your specifications. Instead, the developer has complete freedom over the form html, and can write the form exactly as is needed.
In addition to that,
the developer may also identify some of the input fields whose change event needs to trigger
form validation, with data-qkform-causesvalidation property.
Also, the developer may specify which element to use, in order to display a list of validation error
messages, with data-qkform-role property.
This way, by adding simple annotations to html markup, QkApp works mostly behind the screen, with your html, just as you wrote it.
QkApp is designed to separate the html mark-up and it's "App-like" behavior. Designed to control the html, and not to generate it, QkApp offers completely predictable html rendering of your app.
QkApp is tested for BootStrap v4 vanilla, and on all themes of BootSwatch v4. On 3 or 4 of the BootSwatch themes (out of 12) there are some minor display glitches. But overall, no showstopper UI issues on any of those, and NO functional issue on any. 8-)
It is also tested on Bootstrap.386 - one of my most favourite BootStrap customization ;) . Not a bad show either, but the BootStrap v4 round corners ruin half the fun it has with BootStrap v3.x.
QkApp provides a system of many components that can be used with each other seamlessly, allowing whatever combinations you want off them. It forms a skeleton for an app with capabilities like handling a form as, well, just that - a form, or showing a form in dialog or a wizard or elsewhere, or requesting a web service, etc.
qkval api."qkform:validate" event
veto a validation, declaring your objection on the validity of the values.vetoPoll.veto has 2 arguments