File

libs/upp-wdgt/src/components/upp-select/upp-select.ts

Description

Represents an option within the upp-select component.

Metadata

Index

Methods
Inputs
Outputs

Inputs

value
Type : any
Default value : null

The value associated with this option.

Outputs

Select
Type : EventEmitter

Event emitted when the option is selected.

Methods

OnSelect
OnSelect()

Emits the Select event with the current value when selected.

Returns : void
<div tabindex="0" (click)="OnSelect()" (keydown.enter)="OnSelect()" (keydown.space)="OnSelect()">
    <ng-content></ng-content>
</div>

./upp-select.scss

:host {
    .item-box {
        position: relative;
        margin: 0px 6px;

        ion-icon {
            font-size: 40px;
            position: absolute;
            top: 6px;
            right: 10px;
        }

        ::ng-deep ion-item {
            --border-style: none;
            --inner-padding-start: 10px;
        }
    }    

    .list-sep {
        position: absolute;
        width: 100%;
        z-index: 4;

        clear: both; 
        height: 40px; 
        background: linear-gradient(180deg, var(--ion-background-color) 30%, transparent 100%);

        transition: all ease-in .3s;
        top: 0px;
        visibility: hidden;

        &.visible {
            visibility: visible;
            top: calc(25vh - 10px);
        }
    }

    .list-box {
        position: absolute;
        height: 100vh;
        top: 0px;
        left: 10px;
        right: 10px;
        overflow: hidden;
        background: var(--ion-color-light);
        border-radius: 8px;
        z-index: 5;

        transition: all ease-in .3s;
        max-height: 0px;
        
        &.visible {
            max-height: 25vh;
        }

        .inner {
            height: 25vh;

            ion-list {
                margin: 0px !important;
                border-radius: 0px !important;
                background: transparent !important;
            }
    
            upp-scrollable {
                ::ng-deep .content {
                    background: transparent !important;
                }    
            }
        }
    }


    /*
    .options-box {
        position: absolute;
        top: 0px;
        bottom: 0px;
        left: 10px;
        right: 10px;
        height: 100vh;

        background: var(--ion-color-light);
        border-radius: 8px;
        overflow: hidden;
        z-index: 5;

        .list-box {
            transition: all ease-in .3s;
    
            max-height: 0px;
            &.visible {
                max-height: 20vh;
            }
    
        }    
    }
    */
}

Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""