I just discovered a way to do this today for another forum post.
Use the is-enabled attribute.
is-enabled