Questions tagged [ion-segment]

9 questions
3
votes
2 answers

Is there a way to load ionic pages inside of an ionic segment?

A newbie with ionic v3. I have three ionic pages which i am trying to display inside of ionic segments. I want to keep the functionality of the pages segregated for easier maintainability. For now i haven't found a workaround since ionic won't allow…
Abhi1503
  • 33
  • 5
2
votes
1 answer

Ion-Segment in Ionic4 vs Ionic3

I have a segment of the form given below in Ionic3 and the code given below. Could any one please tell me how to implement the same in Ionic4. Ionic3 code
1
vote
1 answer

How to remove empty columns when fetching dynamic data in ion segments?

Whenever I am fetching data dynamically in ion-segment using Ng, the data in the first segment ie "ALL" is being appropriately fetched but in my remaining segments, empty columns are being displayed along with items. Suppose if I am fetching 5 items…
1
vote
2 answers

Ionic 4/Angular Have default tab open atomically

I have a page with 2 tabs. When I go to the page, it starts off as blank with just the 2 tab buttons showing. Once I click on either of the buttons, the contents of the tabs display. How can I make it so when I navigate to that page, one of the tabs…
1
vote
2 answers

Ionic 4: How to focus the view of ion-segment when its clicked

There are five ion-segment-button, Something | Something | Something | Something | Something If I click the 4th segment the view didnt follow or focus to the current segment. Above is the current screenshot I want the view move (to the right or…
user11781995
0
votes
0 answers

Scroll error with ion-segment in ion-accordion

I’ve got a scroll error with ion-segment. When i click on the right segments, all the page move to left and break the design. It’s due to the animation that center the active segment. I'm using this arb home.page.html
Jul6art
  • 219
  • 3
  • 14
0
votes
0 answers

TypeError: Cannot read properties of undefined (reading 'detail')

When I try running my code I get this error. I have no idea why. I have tried changing it to try and get it to work but it just refuses. I'm trying to switch between ion-segments and display data from firebase…
mcadam4000
  • 17
  • 5
0
votes
1 answer

How to combine Ionic Segment and Slide to make swipe-able tabs with Ionic-React?

I am new to Ionic and having problem to combine IonSegment and IonSlides in my Ionic-React application. There are not much resources in the internet especially using with Ionic with React. How do I get the index of the slide content (in this case a…
0
votes
3 answers

ionic4 making segment on ios to look like they look on android with css

i am trying to make the segments on ios look the same way as they look on android. refer https://beta.ionicframework.com/docs/api/segment i tried to play with the css properties like segment-button-checked { --background-checked: transparent…
Vik
  • 8,721
  • 27
  • 83
  • 168