Maplets[Tools]
AddAttribute
add attributes to an element
Calling Sequence
Parameters
Description
Examples
AddAttribute(x, opts)
x
-
element
opts
(optional) attribute(s) to add
The AddAttribute(x, opts) calling sequence adds attributes to a previously constructed element. This is an advanced feature. No post-processing is performed. Therefore, shortcuts cannot be used.
The AddAttribute command must be used on constructed elements prior to a call to the Maplet command and can only be used directly on objects to which it is applied.
A Maplet application that has one label which, when clicked, exits.
withMapletsElements:
b≔ButtonHello,onclick=A1
b≔Maplets:−Elements:−com.maplesoft.maplets.elements.MButtononclick=REFA1,caption=Hello,enabled=true,halign=center,valign=center,visible=true
MapletsToolsAddAttributeb,reference=B1,color=#FF00FF
Maplets:−Elements:−com.maplesoft.maplets.elements.MButtonreference=B1,color=#FF00FF,onclick=REFA1,caption=Hello,enabled=true,halign=center,valign=center,visible=true
See Also
Overview of Maplet Applications
Download Help Document