****************************
foundation-validation-helper
****************************
A helper API related to validation of a container.
AdaptTo Interface
=================
type
``foundation-validation-helper``
condition
``*``
returned type
``FoundationValidationHelper``
.. code-block:: ts
interface FoundationValidationHelper {
/**
* Returns the submittables elements under this container element.
* Each returned element is a :-foundation-submittables
.
*/
getSubmittables: () => Element[];
/**
* true
if this container element is valid; false
otherwise.
* It is valid when all the submittables under this element are valid.
*/
isValid: () => boolean;
}
Example
=======
.. code-block:: html