2.2.0 • Published 2 years ago

valelattanzi--components v2.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Usage

Config

EndPointType

// Create your endpoints like this
var myEndPoints: EndPointType[] = [
  {
    root: "/user",
    actions: {
      read: {
        one: "/read",
        all: "/read/all",
      },
      create: "/create",
      update: "/update",
      remove: "/remove",
    },
  },
];

PageType

var pages: PageType[] = [
  {
    root: "/user",
    mode: {
      list: "/list",
      create: "/create",
      read: "/read",
      update: "/update",
      remove: "/remove",
    },
  },
];

Custom Hooks

useBackButton

useBackButton(handleGoBack);
function handeGoBack() {
  // Here you put your logic when the user uses the back button from the mobile
}

useError

const { showError, errorMessage, showErrorFunction } = useError();
showErrorFunction("Error: something"); // Put the show error on true
return <IonAlert isOpen={showError} message={errorMessage} buttons={["OK"]} />;
1.0.7

2 years ago

2.2.0

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago