Skip to Content
0

media query and changing properties

Mar 06 at 05:30 PM

43

avatar image

Hello community, i have a little problem, i have this table

<Panel id="panel-id">
<FlexBox 	alignItems="Start"
			justifyContent="Center">
		<items>
			<Table 	 id="tabla"
					 items="{ path : '/MaterialListSet' }" 
					 fixedLayout="false"
					 popinLayout="Block">
			<columns>
				<Column width="12em">
					<Text text="Material" />
				</Column>
				<Column width="8em"
						minScreenWidth="Tablet"
						demandPopin="true">
					<Text text="Responsable" />
				</Column>
				<Column width="8em"
						minScreenWidth="Desktop"
						demandPopin="true">
					<Text text="Ult. Modif" />
				</Column>
				<Column width="8em"
						minScreenWidth="Desktop"
						demandPopin="true">
					<Text text="Tipo de Material" />
				</Column>
				<Column width="8em">
					<Text text="Grupo de Material" />
				</Column>
			</columns>
			
			
			<items>
			
				<ColumnListItem>
					<cells>
						<ObjectIdentifier
							text="{MATERIAL}"/>
						<Text
							text="{RESPONSABLE}" />
						<Text
							text="{ULT_MODIF}" />
						<Text text="{MTYPE}" />
						<ObjectNumber
								number="{GP_ART}" />
					</cells>
				</ColumnListItem>
			
			</items>
			
			</Table>
		</items>
	</FlexBox>
</Panel>

so my table has the propertie fixedLayout="false" how can i do to change it to true when my screen is max-width 991px for example. thanks if you have some doc please let me know

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Nicholas Owen O’Malley Mar 06 at 05:51 PM
0

Hello Naoto Amari

As you can see i dont have allot to do to day.
You can do something like this in the onInit function

var isBigScreen = window.innerWidth >= 991;

this.getView().byId('tabla').setFixedLayout(isBigScreen)
Show 2 Share
10 |10000 characters needed characters left characters exceeded

i solved with the table inside a grid jejejeje but thanks ! ! ! i tried like you told me but setFixedLayout is always set to true

1

Nice to hear that you solved it. I may have misunderstood your problem :).

1