Skip to main content

Board Action

The proxima:boardAction module can add extended functionality to the action bar in the top-right corner of the board.

board-action

Manifest Example

modules:
proxima:boardAction:
- key: board-action
title: Board Action
loadType: Micro
resource: main
route: /board-action
resources:
- key: main
path: ./dist

Properties

nametyperequireddescription
keyStringYesA key for the module, which other modules can refer to. Must be unique within the manifest.
Regex: ^[a-zA-Z0-9_-]+$
resourceStringYesA reference to the static resources entry that your app page wants to display. See resources for more details.
titleStringYesThe title of the app page, which is displayed at the top navigation of Team Header.
loadTypeMicroYesThe app's rendering method
routeStringfalseThe app route, default /

Custom UI Example

You can use the updateBoard method in proximaSdk to update the current board's data (it won't save to the database, only affects the current board's display)

import { proximaSdk } from '@giteeteam/proxima-sdk-js';

const BoardAction = props => {
const { context } = props;
const board = useRef(context.board);
const updateBoard = name => {
board.current.name = name;
board.current.extend.iql = `baseLine = ${name}`;
console.info('updateBoard', board.current);
proximaSdk.execute('updateBoard', board.current);
};

return (
<div className={cx('context')}>
<Space>
<Button type="primary" onClick={() => updateBoard('board1')}>
update board 1
</Button>
<Button type="primary" onClick={() => updateBoard('board2')}>
update board 2
</Button>
</Space>
</div>
);
};