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.
with⁡MapletsElements:
b≔Button⁡Hello,onclick=A1
b≔Maplets:−Elements:−com.maplesoft.maplets.elements.MButton⁡onclick=REF⁡A1,caption=Hello,enabled=true,halign=center,valign=center,visible=true
MapletsToolsAddAttribute⁡b,reference=B1,color=#FF00FF
Maplets:−Elements:−com.maplesoft.maplets.elements.MButton⁡reference=B1,color=#FF00FF,onclick=REF⁡A1,caption=Hello,enabled=true,halign=center,valign=center,visible=true
See Also
Overview of Maplet Applications
Download Help Document