Skip to content

[Config Default Attributes] How to set default attributes without value? #905

Answered by blackjyn
blackjyn asked this question in Q&A
Discussion options

You must be logged in to vote

My Godness, it was simply set to true to just perform this.

$config = [
	"default_attributes"=>[
		Video::class=>[
			"controls"=>true,
			"autoplay"=>true
		]
	]
];

Solved!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by colinodell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question General questions about the project or usage
1 participant
Converted from issue

This discussion was converted from issue #902 on July 25, 2022 12:25.