Lines Matching refs:attributes
33 * @param TagAttributes $attributes
35 public static function processStickiness(&$attributes)
37 if ($attributes->hasComponentAttribute(self::STICKY_ATTRIBUTE)) {
38 $sticky = strtolower($attributes->getValueAndRemove(self::STICKY_ATTRIBUTE));
41 $attributes->addClassName($stickyClass);
66 * @param TagAttributes $attributes
68 public static function processPosition(TagAttributes &$attributes)
70 if ($attributes->hasComponentAttribute(self::POSITION_ATTRIBUTE)) {
71 $position = strtolower($attributes->getValueAndRemove(self::POSITION_ATTRIBUTE));
82 $attributes->addClassName("position-absolute top-0 start-0 translate-middle");
87 $attributes->addClassName("position-absolute top-0 start-25 translate-middle");
91 $attributes->addClassName("position-absolute top-0 start-50 translate-middle");
96 $attributes->addClassName("position-absolute top-0 start-75 translate-middle");
100 $attributes->addClassName("position-absolute top-0 start-100 translate-middle");
105 $attributes->addClassName("position-absolute top-25 start-0 translate-middle");
109 $attributes->addClassName("position-absolute top-50 start-0 translate-middle");
113 $attributes->addClassName("position-absolute top-50 start-50 translate-middle");
117 $attributes->addClassName("position-absolute top-50 start-100 translate-middle");
121 $attributes->addClassName("position-absolute top-100 start-0 translate-middle");
125 $attributes->addClassName("position-absolute top-100 start-50 translate-middle");
129 $attributes->addClassName("position-absolute top-100 start-100 translate-middle");
139 $attributes->addStyleDeclarationIfNotSet("position", $position);