Filter by title

Checkbox Component

The ABP Checkbox Component is a reusable form input component for the checkbox type.

Inputs

  • label
  • labelClass (default form-check-label)
  • checkboxId
  • checkboxReadonly (default form-check-input)
  • checkboxStyle

Outputs

  • checkboxBlur
  • checkboxFocus

Usage

The ABP Checkbox component (AbpCheckboxComponent) is a standalone component. You can import it directly in your component:

import { Component } from "@angular/core";
import { AbpCheckboxComponent } from "@abp/ng.theme.shared";

@Component({
  selector: 'app-checkbox-demo',
  imports: [AbpCheckboxComponent],
  templateUrl: './checkbox-demo.component.html',
})
export class CheckboxDemoComponent {}

Then, the abp-checkbox component can be used in your template. See the example below:

<div class="form-check">
  <abp-checkbox label="Yes,I Agree" checkboxId="checkbox-input">
  </abp-checkbox>
</div>

See the checkbox input result below:

abp-checkbox

Was this page helpful?

Please make a selection.

To help us improve, please share your reason for the negative feedback in the field below.

Please enter a note.

Thank you for your valuable feedback!

Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.

ABP Community Talks
Low-Code, High Precision
13 Aug, 17:00
Online
Watch the Event
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.