PDA

View Full Version : Finding Specific Class of UI Object



HankFay
2017-07-10, 22:29
This is interesting.

If I have a Section that is a Grid Section named "grdMyGridSection" and do


lo = Lianjg.get("grdMyGridSection")
? lo.class

I get: Section.

Which is technically correct, but doesn't give me the correct set of attributes (and yes, I'm working on a UI for efficient attribute setting for the eidetic-memory-impaired, c'est moi).

So, other than heuristics (is the first child a column, etc.), is there a way to know what specific type of Section I have?

thanks,

Hank

barrymavin
2017-07-11, 01:42
This is interesting.

If I have a Section that is a Grid Section named "grdMyGridSection" and do


lo = Lianjg.get("grdMyGridSection")
? lo.class

I get: Section.

Which is technically correct, but doesn't give me the correct set of attributes (and yes, I'm working on a UI for efficient attribute setting for the eidetic-memory-impaired, c'est moi).

So, other than heuristics (is the first child a column, etc.), is there a way to know what specific type of Section I have?

thanks,

Hank
lo.type

HankFay
2017-07-11, 01:43
Bravo!

thanks,

Hank