Skip to content

Using Ids #1

@Crystark

Description

@Crystark

Hi,

I was trying to implement your ProgressBar. Great work though i was wondering : why are you using ids for each part of the ProgressBar ? Using a class names and accessing the objects using container.getElement('.myclass') would work perfectly and you wouldn't have to define ids for each loader you wana set on a page.

For instance, if i want to create two loaders and i don't want to bother defining ids for each, then your script is going to set the same id for each bar. I know i could just define the ids, but when doing group work, you never know what id has already been used so i try avoiding them.

I'm not an expert so if i'm wrong, do not hesitate to correct me.

Anyway, thanks for this great tool !

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