2.2.0 • Published 12 months ago

valelattanzi--components v2.2.0

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

1 year ago

2.2.0

12 months ago

2.1.0

12 months ago

2.0.1

12 months ago

2.0.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago