How to customize ionic select popup height in ionic


Octococcus

I'm trying to override max-heighta divset of attributes to use on the popup element , but I've had no luck so far, this is what I've got so far:interfaceOptions

 customOptions: Record<string, string> = {
    header: this.translate.instant('mobile.giving.deductionStartDateHeader'),
    cssClass: 'ion-select-max-height'
  };
.ion-select-max-height {
 .alert-radio-group {
      max-height: 100%!important;
      }
}
<ion-select [interfaceOptions]="customOptions" [formControlName]="fields.deductionStartDate">
    <ion-select-option *ngFor='let date of company.possibleDeductionDates | slice:0:6' [value]="date">
                {{ date | date:'mediumDate' }}
    </ion-select-option>
</ion-select>

How can I change the max height divwith the as class without overriding the global class .alert-radio-group?

enter image description here

Octococcus

If I use in front of the class ng-deepI'm creating to pass to the cssClassproperty , then it overrides the class I'm modifying in the popup:

::ng-deep .ion-select-max-height {
 .alert-radio-group {
      max-height: 100%;
      }
}

I'm still learning angular styles, but I read what ng-deepis forcing styles to child components, I see ion-alertthat DOM is injected, so I'm guessing it's child components

Related


How to customize ionic select popup height in ionic

Octococcus I'm trying to override max-heighta divset of attributes to use on the popup element , but I've had no luck so far, this is what I've got so far:interfaceOptions customOptions: Record<string, string> = { header: this.translate.instant('mobile.gi

How to customize ionic select popup height in ionic

Octococcus I'm trying to override max-heighta divset of attributes to use on the popup element , but I've had no luck so far, this is what I've got so far:interfaceOptions customOptions: Record<string, string> = { header: this.translate.instant('mobile.gi

How to customize ionic select popup height in ionic

Octococcus I'm trying to override max-heighta divset of attributes to use on the popup element , but I've had no luck so far, this is what I've got so far:interfaceOptions customOptions: Record<string, string> = { header: this.translate.instant('mobile.gi

How to customize ionic select popup height in ionic

Octococcus I'm trying to override max-heighta divset of attributes to use on the popup element , but I've had no luck so far, this is what I've got so far:interfaceOptions customOptions: Record<string, string> = { header: this.translate.instant('mobile.gi

How to customize ionic labels?

Lucas Gaspar I'm doing a simple app with Ionic Framework and am using ion-tabs. I have tried everything to customize my ionic tags but nothing works, can anyone help me to show the css? I don't want to use ionic colors like: positive, dark or overconfident, I

How to customize ionic labels?

Lucas Gaspar I'm doing a simple app with Ionic Framework and am using ion-tabs. I have tried everything to customize my ionic tags but nothing works, can anyone help me to show the css? I don't want to use ionic colors like: positive, dark or overconfident, I

How to customize ionic labels?

Lucas Gaspar I'm doing a simple app with Ionic Framework and am using ion-tabs. I have tried everything to customize my ionic tags but nothing works, can anyone help me to show the css? I don't want to use ionic colors like: positive, dark or overconfident, I

How to customize ionic labels?

Lucas Gaspar I'm doing a simple app with Ionic Framework and am using ion-tabs. I have tried everything to customize my ionic tags but nothing works, can anyone help me to show the css? I don't want to use ionic colors like: positive, dark or overconfident, I

How to show ionic popup from popup option?

David Prieto I have a popup in my Ionic framework app with options: share and delete. After selecting the delete option, I need to show the confirmation popup, but I don't know how. How can this be done? Do I need to create a separate controller for the popup?

How to show ionic popup from popup option?

David Prieto I have a popup in my Ionic framework app with options: share and delete. After selecting the delete option, I need to show the confirmation popup, but I don't know how. How can this be done? Do I need to create a separate controller for the popup?

How to show ionic popup from popup option?

David Prieto I have a popup in my Ionic framework app with options: share and delete. After selecting the delete option, I need to show the confirmation popup, but I don't know how. How can this be done? Do I need to create a separate controller for the popup?

How to show ionic popup from popup option?

David Prieto I have a popup in my Ionic framework app with options: share and delete. After selecting the delete option, I need to show the confirmation popup, but I don't know how. How can this be done? Do I need to create a separate controller for the popup?

How to show ionic popup from popup option?

David Prieto I have a popup in my Ionic framework app with options: share and delete. After selecting the delete option, I need to show the confirmation popup, but I don't know how. How can this be done? Do I need to create a separate controller for the popup?

How to show ionic popup from popup option?

David Prieto I have a popup in my Ionic framework app with options: share and delete. After selecting the delete option, I need to show the confirmation popup, but I don't know how. How can this be done? Do I need to create a separate controller for the popup?

Angular and Ionic-v4 ionic select popup not working

Matteo I want to open ionSelect programmatically with popup window modal. @ViewChild('selectNotificationList') selectNotificationList: IonSelect; The way to turn on ion selection is: clickNotificationNumber() { this.selectNotificationList.interface = 'pop

Angular and Ionic-v4 ionic select popup not working

Matteo I want to open ionSelect programmatically with popup window modal. @ViewChild('selectNotificationList') selectNotificationList: IonSelect; The way to turn on ion selection is: clickNotificationNumber() { this.selectNotificationList.interface = 'pop

How to customize font size in Ionic Framework

psv I am developing a mobile application using the ionic framework (together with cordova). What I want to do is increase the font size (usually in my app). I've seen this in the official documentation : http://ionicframework.com/tutorials/customizing-ionic-wi

ionic2 - how to customize button size

Yuyang He This is a screenshot of my share button This screen size is iphone6 4.7inch, but if it runs on iphone5 4inch it will be crowded and deformed, so I want to change the button size to be smaller. .html file <ion-row> <ion-note>分享:</ion-note> <

How to customize font size in Ionic Framework

psv I am developing a mobile application using the ionic framework (together with cordova). What I want to do is increase the font size (usually in my app). I've seen this in the official documentation : http://ionicframework.com/tutorials/customizing-ionic-wi

How to customize ionic range in disabled state?

Tomas Vancoillie Is there a way to customize the ionic range with attribute activation disabled? Use ion-rangeas a visual cue to show where the user is in the (sequence) process. The user will not have the option to change the scope, so the disabledattribute w

How to customize font size in Ionic Framework

psv I am developing a mobile application using the ionic framework (together with cordova). What I want to do is increase the font size (usually in my app). I've seen this in the official documentation : http://ionicframework.com/tutorials/customizing-ionic-wi

How to customize font size in Ionic Framework

psv I am developing a mobile application using the ionic framework (together with cordova). What I want to do is increase the font size (usually in my app). I've seen this in the official documentation : http://ionicframework.com/tutorials/customizing-ionic-wi

How to customize ionic range in disabled state?

Tomas Vancoillie Is there a way to customize the ionic range with attribute activation disabled? Use ion-rangeas a visual cue to show where the user is in the (sequence) process. The user will not have the option to change the scope, so the disabledattribute w

How to customize ionic range in disabled state?

Tomas Vancoillie Is there a way to customize the ionic range with attribute activation disabled? Use ion-rangeas a visual cue to show where the user is in the (sequence) process. The user will not have the option to change the scope, so the disabledattribute w

How to select ionic button array in ionic 4?

username I have to choose the size of the product, so I have to choose one option at a time. I don't know what to do, please help me <div class="size-scroll" scrollX="true"> <button ion-button class="btn-size size-span" *ngFor="let category of sizeArray

How to select ionic button array in ionic 4?

username I have to choose the size of the product, so I have to choose one option at a time. I don't know what to do, please help me <div class="size-scroll" scrollX="true"> <button ion-button class="btn-size size-span" *ngFor="let category of sizeArray

How to close ionic popup when background is clicked

Salman Ullah Khan How do I close the popup when I click on the backgroud in ionic. Here is my code. I am new to ionic and angular js. The code below allows me to open a popup and when I click the button I make the popup close. I want to make it so that when I

How to use popup at the beginning of an ionic app?

David Cesar Santos Sorry, my English is no good. Still new to Ionic, I created a simple app. I want to launch the app via a popup, but I don't know how to do it. When you start a new app with Ionic you can see at the end of app.js “ $ urlRouterProvider.otherwi

How to use Ionic Popup with scope in Controller As syntax?

Jason I have an Angular controller setup that uses Controller as the syntax, and I need to use a method to create an Ionic Popup with bound data fields. I don't know how to set the scope of the data bound popup. I found this example, but using both this and $s