svelte-native-nativescript-ui icon indicating copy to clipboard operation
svelte-native-nativescript-ui copied to clipboard

Change form layout to dataFormGridLayout

Open zanicoski opened this issue 3 years ago • 4 comments

Hi, I am trying to change the layout to dataFormGridLayout as follow but is not working:

` <NavBar text="Configurações de Obras" buttonBack />

<gridLayout column="1" row="1">
  <radDataForm source={testConfig} metadata={configMetadata} propertyGroup>
    
      <entityProperty name="measureQtd" displayName="Medida"  index="2" columnIndex="0">
          <propertyEditor type="Number" />
      </entityProperty> 
      
      <entityProperty name="hdop" displayName="hdop" index="3" columnIndex="0">
          <propertyEditor type="Number" />
      </entityProperty>
      
      <entityProperty name="tolerance" displayName="Tolerância" index="4" columnIndex="1">
        <propertyEditor type="Number" />
      </entityProperty>
      
      <entityProperty name="locationRadius" displayName="Raio" index="5" columnIndex="1">
        <propertyEditor type="Number" />
      </entityProperty>

    </propertyGroup>
  </radDataForm>


</gridLayout>
  
  <flexboxLayout row="2" colSpan=2> 
    <Button btTitle="SALVAR CONFIGURAÇÕES" btEnabled onclick={onTapAsConfirmButton} />
  </flexboxLayout>

`

zanicoski avatar Sep 09 '22 00:09 zanicoski

sorry, fixing the text

<gridLayout  row="1">
  <radDataForm source={testConfig} metadata={configMetadata} propertyGroup>
    <propertyGroup >
      <propertyGroup.layout>
        <dataFormGridLayout />
      </propertyGroup.layout>
      <entityProperty name="constructionName" hidden="true">
      </entityProperty>
      <entityProperty name="constructionType" hidden="true">     
      </entityProperty>
      <entityProperty name="heigthStick" hidden="true">     
      </entityProperty>

      <entityProperty name="precision" displayName="Precisão" index="0" columnIndex="0">
          <propertyEditor type="Number" />
      </entityProperty>
      
     
      <entityProperty name="hdop" displayName="hdop" index="3" columnIndex="0">
          <propertyEditor type="Number" />
      </entityProperty>
      
      <entityProperty name="tolerance" displayName="Tolerância" index="4" columnIndex="1">
        <propertyEditor type="Number" />
      </entityProperty>
      

      <entityProperty name="vdop" displayName="VDOP" index="6" columnIndex="1">
        <propertyEditor type="Number" />
      </entityProperty>
    </propertyGroup>
  </radDataForm>

zanicoski avatar Sep 09 '22 00:09 zanicoski

or like this:

<radDataForm source={testConfig} metadata={configMetadata}>
        <propertyGroup layout="dataFormGridLayout" >
          <entityProperty name="constructionName" hidden="true">
          </entityProperty>

zanicoski avatar Sep 09 '22 01:09 zanicoski

Which part isn't working? is it crashing? or just ignoring the changes? what is the debug output?

halfnelson avatar Sep 10 '22 10:09 halfnelson

Hello @halfnelson sorry for not entering a complete description/result:

below the result for both situations:

<radDataForm source={testConfig} metadata={configMetadata}> <propertyGroup layout="dataFormGridLayout" >

<propertyGroup > <propertyGroup.layout> <dataFormGridLayout /> </propertyGroup.layout>

  • is showing as list

image

zanicoski avatar Sep 13 '22 14:09 zanicoski