2.2.0 • Published 10 months ago

valelattanzi--components v2.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
10 months 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

11 months ago

2.2.0

10 months ago

2.1.0

10 months ago

2.0.1

10 months ago

2.0.0

10 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago