
Security News
Rspack Introduces Rslint, a TypeScript-First Linter Written in Go
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Formikation is a simple jQuery plugin to beautify form inputs with some css.
The elements to work with are:
input:checkbox
input:radiobutton
input:file
select
Take a look to online demo, there are some examples with diferent themes.
The only html requisite is to style radiobuttons and checkboxes. Them must be wrapped by a label
<label>
<input type="checkbox" name="check" id="check">
Checkbox label
</label>
<label>
<input type="radio" name="radio" id="radio">
Radio label
</label>
Formikation comes with a utility CSS that includes the neccessary CSS styles to work, without any visual styles on it. To add the utility CSS styles, add the .formikation
class to yout form element this way:
<form action="/" class="formikation" >
...
The visual styling of the formikation elements comes in an independet stylesheet, to keep separated the visual representation from the utility classes. Two themes are included in the repository .fk-theme-default
and .fk-theme-switches
.
Include the .fk-theme-default
class on the parent element along the base .formikation
class, this way:
<form action="/" class="formikation fk-theme-default" >
...
If you want to develop your own theme, take a look to src/themes/fk-theme-default.scss
and use it as base to do your own customization.
Call Formikation jQuery plugin on ready function:
$(function() {
$('form.formikation').find('select, input:file, input:checkbox, input:radio').formikation();
});
If you need to update any formikation element with js, it’s necessary to trigger formikation.update event to get UI change reflected.
// Active a checkbox
$('.form-element').prop('checked', true).trigger('formikation.update');
IE8 has some dificults on repainting :before
and :after
pseudo-elements after change checkbox or radiobuttons status.
Is simple to fix it, just change pseudo-element content from ''
to ' '
(this fix is applied on default theme).
FAQs
Unknown package
We found that formikation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.
Security News
Hacker Demonstrates How Easy It Is To Steal Data From Popular Password Managers
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.