Home Cooker Classes Others Rice CookerGX
Classes  >  option  >  option(element)
option class : option(element) fitter

Description

Gets an instance of option class initialized by argument.

Syntax

new option(element optionElement)

Arguments

ClassNameDescription
elementoptionElementAn instance of the element class representing the option tag.

Return value

ClassDescription
optionAn instance of the option class initialized by argument.

Sample code

// The optionElement is an instance of the element class representing the option tag.

option optionInstance = new option(optionElement);

Notes

If the argument is not an instance of the appropriate element class, an exception will be raised.

Links for reference

None.

Copyright © Rice All rights reserved.