@fto-consult/expo-ui 6.76.0 → 6.76.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
@@ -655,13 +655,13 @@ export default class TableDataScreenComponent extends FormDataScreen{
|
|
655
655
|
return this.props.newAction !== false ? true : false;
|
656
656
|
}
|
657
657
|
isMobileOrTabletMedia(){
|
658
|
-
const r = this.
|
658
|
+
const r = this.getRenderTabsType();
|
659
659
|
if(r =="mobile") return true;
|
660
660
|
if(r =="desktop") return false;
|
661
661
|
return isMobileOrTabletMedia();
|
662
662
|
}
|
663
|
-
|
664
|
-
const r = defaultStr(this.props.
|
663
|
+
getRenderTabsType (){
|
664
|
+
const r = defaultStr(this.props.renderTabsType).toLowerCase();
|
665
665
|
if(!r || !(defaultRendersTypes.includes(r))) return "responsive";
|
666
666
|
return r;
|
667
667
|
}
|
@@ -901,7 +901,7 @@ export default class TableDataScreenComponent extends FormDataScreen{
|
|
901
901
|
|
902
902
|
TableDataScreenComponent.propTypes = {
|
903
903
|
...defaultObj(FormData.propTypes),
|
904
|
-
|
904
|
+
renderTabsType : PropTypes.oneOf([...defaultRendersTypes,undefined,"responsive"]),//spécifie le type de rendue : mobile, alors le tab sera rendu en mobile, desktop, ce sera rendu en desktop, responsible ou undefined, alors les deux rendu seront possible
|
905
905
|
prepareComponentProps : PropTypes.func, //permet d'appreter les components props à utiliser pour le rendu des données
|
906
906
|
prepareField : PropTypes.func,//La fonction permettant de faire des mutations sur le champ field à passer au formulaire form. si elle retourne false alors la field ne sera pas pris een compte
|
907
907
|
unique : PropTypes.bool,//si la validation de type unique sur le champ sera effective
|