xpages - Is there a way to use a javascript object as a custom control property? -
i'm building custom control used application's view navigator (classic oneui style). first of all: 8.5.3 based project, , unfortunately there's no way use extlib stuff or other extensions / plug-ins. have build tricky stuff ourselves using came "out-of-the-box" 8.5.3.
i'd llike build navigator using repeat control containing <xp:link>
controls. datasource array of javascript objects each single object this:
var naventry = {"entrylabel" : "label-of-link", "entrytarget" : "target-url-of-link", "entrystyle" : "style-to-emphasize-selected-link"}
each array element describe single navigator entry. since navigator used in possible "dominoview" xpages yould make sense build array of js objects @ xpage level , pass info custom control.
i'm aware there multiple ways this, , 1 "custom control properties". if there way pass js object array.
(hope make clear i'm trying here...)
that object looks hashmap me really. should able pass in custom control via custom property if use type java.util.hashmap i'd think. you'll need type in i'm sure. i've passed custom objects in using java.lang.object.
Comments
Post a Comment