outsystems-ui - v2.30.0
    Preparing search index...

    Class AbstractParent<C, CT>Abstract

    Defines the Default props and methods for Patterns that will have other Patterns as its childs

    AbstractParent

    Type Parameters

    Hierarchy (View Summary)

    Implements

    Index
    isProviderBased: boolean = false
    • get _enableAccessibility(): boolean
      Protected

      Getter that allows to obtain the accessibility is enabled.

      Returns boolean

      OSFramework.Patterns.AbstractPattern

    • Protected

      Get the child reference based on given Id

      Parameters

      • childId: string

        Child Id of the element to be found

      Returns CT

      Child Reference

      OSFramework.Patterns.AbstractParent

    • Protected

      Get a child reference by a given Index position

      Parameters

      • index: number

        Index of the item to be returned

      • OptionalchildType: string

        To be based on childType childs collection, otherwise will assume parent only contains one child type!

      Returns CT

      Child Reference

      OSFramework.Patterns.AbstractParent

    • Protected

      Get a child index from a given child Id

      Parameters

      • childId: string

        Child id where index will be found

      Returns number

      Index value

      OSFramework.Patterns.AbstractParent

    • Method used to notify all children about a given notification type

      Parameters

      • notificationType: string

        Notification type

      Returns void

      OSFramework.Patterns.AbstractParent

    • Protected

      Method that is used to set a given child as a Parent child.

      Parameters

      • childItem: CT

        Reference to be added

      Returns void

      OSFramework.Patterns.AbstractParent

    • Protected

      Method that will remove Child by given Id

      Parameters

      • childId: string

        Id of the item that will be removed

      Returns void

      OSFramework.Patterns.AbstractParent

    • Getter that allows to obtain all the childs when parent only contains childs of one type, otherwise a type must be passed in order to return all child of the given type!

      Parameters

      • Optionaltype: string

        To be based on childType childs collection, otherwise will assume parent only contains one child type!

      Returns CT[]

      OSFramework.Patterns.AbstractParent

    • Method used to be notified by a given ChildId about a given action and act accordingly

      Parameters

      • childItem: CT

        Child Item

      • notifiedTo: string

        Notification name (Should be based on an Enum)

      Returns void

      OSFramework.Patterns.AbstractParent