getElement method
(en) Gets the element with the specified String ID.
(ja) 指定String IDを持つエレメントを取得します。
id
: String ID param of SpWML.
returns: If target is not exist, return null.
Implementation
SpWMLElement? getElement(String sid) {
for (SpWMLElement i in _parsedWidgets) {
if (i.params.containsKey(EnumSpWMLParams.sid)) {
if (i.params[EnumSpWMLParams.sid] == sid) {
return i;
}
}
}
return null;
}