How to use the xadmin.app.go function in xadmin

To help you get started, we’ve selected a few xadmin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sshwsfc / xadmin / packages / xadmin-antd / src / layout / App.js View on Github external
  const click = (to) => () => app.go(to)
  return last ? <span>{route.breadcrumbName}</span> : <a>{route.breadcrumbName}</a>
github sshwsfc / xadmin / examples / xadmin-demo / src / dashboard / editor.js View on Github external
const PreviewBtn = () =&gt; <button>app.go('/show')} icon="eye"&gt;预览</button>
github sshwsfc / xadmin / packages / xadmin-model / src / hooks.js View on Github external
      onAdd: () => app.go(`/app/model/${model.name}/add`),
      onSaved: () => (history && history.length > 1) && history.back() || app.go(`/app/model/${model.name}/list`),
github sshwsfc / xadmin / packages / xadmin-model / src / hooks.js View on Github external
      onBack: () => (history && history.length > 1) && history.back() || app.go(`/app/model/${model.name}/list`),
      onEdit: (id) => app.go(`/app/model/${model.name}/${encodeURIComponent(id || props.id)}/edit`)