Writing an Advanced Web Component: Reflection


placeholder

This is a premium lesson.

Subscribe to get access to the entire course.

Sign up now

Let’s make our checkbox component even more useful by adding a disabled state.

This is common behaviour for many UI controls, so it makes sense to provide a way for consumers to turn off the component’s clickableness.

Jump into your checkbox component repo to start by wiring up a disabled attribute to our component.

First off, you’re going to want to observe the disabled attribute in your component:

static observed```