Skip to content

Centralized configuration #15

@skal111

Description

@skal111

Hi,

Thx a lot for the nzToggle library which I intensively use.

Since I have many nzToggle elements in my application it would be great if I could define a default configuration for my toggles as they all share the same color and size properties.

Could be something like this

angular.module('myModule', [nzToggle]).config([ 'nzToggleConfigProvider', function(nzToggleConfigProvider))
{
nzToggleConfigProvider.setTrueColor('#123456');
nzToggleConfigProvider.setWidth('20');
...
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions