Lines Matching defs:attributes
31 * @param TagAttributes $attributes
35 static function processToggle(TagAttributes $attributes)
42 $value = $attributes->getValueAndRemove(self::TOGGLE_STATE);
54 $attributes->addClassName("collapse show");
57 $attributes->addClassName("collapse");
75 $id = $attributes->getValue("id");
105 if ($attributes->hasComponentAttribute($collapse)) {
106 $targetId = $attributes->getValueAndRemoveIfPresent($collapse);
108 $targetId = $attributes->getValueAndRemoveIfPresent("collapse");
121 $attributes->addOutputAttributeValue("data-{$bootstrapNamespace}toggle", "collapse");
122 $attributes->addOutputAttributeValue("data-{$bootstrapNamespace}target", $targetId);
132 if ($attributes->hasComponentAttribute($collapsed)) {
133 $value = $attributes->getValueAndRemove($collapsed);
135 $attributes->addClassName("collapse");