Onechoice::bootstrap()

Bootstraps the element type by setting properties.

Description

See also

Source

File: src/db-objects/elements/element-types/base/onechoice.php

	protected function bootstrap() {
		$this->slug        = 'onechoice';
		$this->title       = __( 'One Choice', 'torro-forms' );
		$this->description = __( 'A radio group element to select a single value from.', 'torro-forms' );
		$this->icon_svg_id = 'torro-icon-onechoice';

		$this->add_choices_settings_field();
		$this->add_description_settings_field();
		$this->add_required_settings_field();
		$this->add_css_classes_settings_field();
	}

Changelog

Changelog
Version Description
1.0.0 Introduced.