Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a convenient way to run the plugin #7

Open
7 tasks
glebkema opened this issue Oct 23, 2019 · 0 comments
Open
7 tasks

Need a convenient way to run the plugin #7

glebkema opened this issue Oct 23, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@glebkema
Copy link
Owner

The plugin currently uses too many entities:

  • It adds specific CSS class names for inherent CSS properties.
  • It is required to call the jQuery method for the selector with the select field that the user wants to style.
  • The user can define their own CSS classes for the HTML layout that will be compiled by the plugin.

So, we already have 3 types of CSS classes:

  1. define target select \field
  2. provide oligatory CSS properties
  3. apply user CSS properties

I would like to simplify the start method and to make the final ierarchy of CSS clases more predictable. For example:

  • User can start the plugin without JS-code:
    • by adding of specific CSS class name (as Owl Carousel);
    • by adding of specific data attributes (as FancyBox).
  • User can define the structure of CSS clases:
    • by the data atributes;
    • by setting of the plugin defaults;
    • by the array of options for the plugin function.
@glebkema glebkema added the enhancement New feature or request label Oct 23, 2019
@glebkema glebkema added this to the 1.0 milestone Oct 23, 2019
@glebkema glebkema self-assigned this Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant