Skip to content

SiIp4InputDirective documentation

import { SiIp4InputDirective } from '@siemens/element-ng/ip-input';

Directive for IPv4 address input fields.

Usage:

import { SiFormItemComponent } from '@siemens/element-ng/form';
import { SiIp4InputDirective } from '@siemens/element-ng/ip-input';

@Component({
  template: `
    <si-form-item label="IPv4 address">
      <input type="text" class="form-control" siIpV4 />
    </si-form-item>
  `,
  imports: [SiFormItemComponent, SiIp4InputDirective, ...]
})

Input Properties

Name Type Default Description
cidr inherited
boolean false

Enable CIDR (Classless Inter-Domain Routing) notation.

Inherited from SiIpInputDirective

disabled inherited
boolean false

Whether the ip address input is disabled.

Inherited from SiIpInputDirective

id inherited
string `si-ip-input-${SiIpInputDirective.idCounter++}`

Inherited from SiIpInputDirective

Attributes and Methods

Name Type Description
registerOnChange() inherited
(fn: any) => void

Inherited from SiIpInputDirective

Implements ControlValueAccessor

Parameters
  • The callback function to register

    fn : any

registerOnTouched() inherited
(fn: () => void) => void

Inherited from SiIpInputDirective

Implements ControlValueAccessor

Parameters
  • The callback function to register

    fn : () => void

setDisabledState() inherited
(isDisabled: boolean) => void

Inherited from SiIpInputDirective

Implements ControlValueAccessor

Parameters
writeValue() inherited
(value?: string | null) => void

Inherited from SiIpInputDirective

Implements ControlValueAccessor

Parameters

Except where otherwise noted, content on this site is licensed under MIT License.