mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.1 KiB
1.1 KiB
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
checkboxReadonly (default form-check-input)
checkboxStyle
Outputs
checkboxBlur
checkboxFocus
Usage
The ABP Checkbox component is a part of the ThemeSharedModule
module. If you've imported that module into your module, there's no need to import it again. If not, then first import it as shown below:
// my-feature.module.ts
import { ThemeSharedModule } from "@abp/ng.theme.shared";
import { CheckboxDemoComponent } from "./CheckboxDemoComponent.component";
@NgModule({
imports: [
ThemeSharedModule,
// ...
],
declarations: [CheckboxDemoComponent],
// ...
})
export class MyFeatureModule {}
Then, the abp-checkbox
component can be used. 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: