LearnNewsExamplesServices
Frontmatter
titleAdded Neo.first() for debugging purposes
authorDinkh
stateMerged
createdAtJan 1, 2023, 3:11 PM
updatedAtJan 1, 2023, 4:27 PM
closedAtJan 1, 2023, 4:27 PM
mergedAtJan 1, 2023, 4:27 PM
branchesdevdev
urlhttps://github.com/neomjs/neo/pull/3732
Merged
Dinkh
Dinkh commented on Jan 1, 2023, 3:11 PM
        // as String: ntype[comma separated propterties]
        Neo.first('toolbar button[text=Try me,icon=people]')
        // as Object: Add properties. ntype is optional
        Neo.first({
            icon: 'people'
        })
        // as Array: An Array of Objects. No Strings allowed
        Neo.first([{
            ntype: 'toolbar'
        },{
            ntype: 'button', text: 'Try me', icon: 'people
        }])