Skip to content

Feature Request: Support for global default options #20

Description

@c266

I would like to suggest adding support for global default options, similar to how some jQuery plugins allow setting defaults via an object like $.conditionize.defaults.

This feature would allow developers to define default behaviors for conditionize2.js once, and have them applied across all instances, unless overridden locally.

For example:

$.conditionize.defaults = {
  updateOn: 'change',
  onload: true,
  ifTrue: 'show',
  ifFalse: 'hide'
};

Then, calling $('.my-element').conditionize(); would use these defaults.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions