I quite like the dojo NumberSpinner field; can I apply this or any other dojoType to edit boxes etc.? I can apply the necessary dojo resource to my XPage, but there’s no property in the editBox control, at least none I can see.
So I plainly tried to add dojoType and constraints attributes to my xp:inputText control, but of course designer doesn’t like that:
unknown property dojoType…
etc.
I’m considering using a theme for that purpose, but isn’t there any way to directly apply dojoTypes and other attributes to XPage controls?
I was just looking at this yesterday. There’s a Wiki article that has an example of attaching a dojo spinner to an editbox control (among other examples). Here’s the link:
Subject: Problem with oneui.theme and dijit-components
Just a warning:I tried the spinner example as well as other dijit-components like a dialog etc. in an application I more or less built after Declan Lynch’s tutorial which uses that theme.
I am using the oneui theme based on Declan Lynch’s tutorial. If I add a Date Time Picker Core Control for a date field it has no css (basically just the text and the rest of the control transparent on the page).
I tried adding manually a Calendar Control using dijit to an oneui based XPage and it had the same problem. But there I was able to set the styleClass to “Tundra” and it worked fine.
I haven’t found a way to do the same to the built in Date Time Picker Core Control.
Yep, I had the same (transparent background etc.) with the standard control. Thanks to Firebug I found that the Date Picker is rendered with a style class “dijitPopup”. So I simply added some “local” css as in