TigriWeb Components
AttributesControlsMetaPrimitivesIntegrations
  • Table of Contents
  • Attributes
    • Checkbox
    • Color
    • ColorGradient
    • DateTime
    • Icon
    • Media
    • Number
    • PostType
    • PostTypeMultiple
    • Radio
    • Range
    • Select
    • Taxonomy
    • TaxonomyMultiple
    • Text
    • Textarea
    • Toggle
    • ToolbarButton
    • ToolbarGroup
  • Controls
    • AppenderButton
    • Media
    • RichHeading
    • RichText
  • Meta
    • Checkbox
    • Color
    • DateTime
    • Icon
    • Media
    • Number
    • PostType
    • PostTypeMultiple
    • Radio
    • Range
    • Select
    • Taxonomy
    • TaxonomyMultiple
    • Text
    • Textarea
    • Toggle
  • Primitives
    • HTML
    • SVG
  • Integrations
    • Enqueue SVG icons
    • Enqueue I18n strings
Powered by GitBook
On this page

Was this helpful?

  1. Attributes

TaxonomyMultiple

PreviousTaxonomyNextText

Last updated 6 months ago

Was this helpful?

{ label, help, taxonomy*, name*, onChange, attributes*, setAttributes* }
/**
 * @param {string} [label] - Component label.
 * @param {string} [help] - Component description.
 * @param {string} taxonomy - The taxonomy name.
 * @param {string} name - Attribute name.
 * @param {function} [onChange] - Callback called when the value changes.
 * @param {object} attributes - Object containing block attributes.
 * @param {function} setAttributes - Function to set new block attribute values.
 */
block.json
"testCategories": {
	"type": "array",
	"default": []
}
index.js
import {
	TwebBlockTaxonomyMultipleControl,
} from '@tigriweb/components/attributes';
index.js | edit()
<TwebBlockTaxonomyMultipleControl
	label={ __('Categories Label', 'your-theme-name') }
	help={ __('Categories Description', 'your-theme-name') }
	taxonomy="category"
	name="testCategories"
	{ ...{ attributes, setAttributes } }
/>
TwebBlockTaxonomyMultipleControl