Set dojoAttributes and attrs on a Control in an XPages Theme file


<theme extends="oneui" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
		xsi:noNamespaceSchemaLocation="platform:/plugin/com.ibm.designer.domino.stylekits/schema/stylekit.xsd">	
	<control>
		<name>numSpin</name>
		<property>
			<name>dojoType</name>
			<value>dijit.form.NumberSpinner</value>
		</property>
		<property>
			<name>dojoAttributes</name>
			<complex type="xp_dojoAttribute">
				<property>
					<name>name</name>
					<value>myDojoAttribute</value>
				</property>
				<property>
					<name>value</name>
					<value>50</value>
				</property>
			</complex>
		</property>
		<property>
			<name>attrs</name>
			<complex type="xp_attr">
				<property>
					<name>name</name>
					<value>myCustomAttr</value>
				</property>
				<property>
					<name>value</name>
					<value>50</value>
				</property>
			</complex>
			<complex type="xp_attr">
				<property>
					<name>name</name>
					<value>myCustomAttr2</value>
				</property>
				<property>
					<name>value</name>
					<value>largeDelta</value>
				</property>
				<property type="boolean">
					<name>minimized</name>
					<value>true</value>
				</property>
			</complex>
		</property>
	</control>
</theme>
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.
No comments yetLogin first to comment...