ଏଜେଣ୍ଟ କାମ ପାଇଁ ଇଣ୍ଟରଫେସ୍
କାମ, ଉପକରଣ, ଅନୁମୋଦନ। ନିୟନ୍ତ୍ରଣ ଆପଣଙ୍କ ଆପ୍ରେ।
ଏଜେଣ୍ଟ ଉପାଦାନ ଆପ୍ ଯୋଗାଇଥିବା ରେକର୍ଡ ଦେଖାଏ ଓ କାର୍ଯ୍ୟ ପାଇଁ ଅନୁରୋଧ ପଠାଏ। ଉପକରଣ ଚଳାଇବା, ଅନୁମତି, ଯୋଗାଯୋଗ, ସଂରକ୍ଷଣ ଓ ନିୟନ୍ତ୍ରିତ ଡେଟା ବଦଳାଇବାର ଦାୟିତ୍ୱ ଆପ୍ରେ ରହେ।
ଉଦାହରଣ
ହୋଷ୍ଟ ଆପ୍ ପରିଚାଳିତ ରନ୍ଗୁଡ଼ିକ ଦେଖାନ୍ତୁ ଏବଂ ବାତିଲ୍ ଅନୁରୋଧଗୁଡ଼ିକ ସମ୍ଭାଳନ୍ତୁ।
import '@aceshooting/lyra-ui/components/lr-background-runs.js';
const board = document.createElement('lr-background-runs');
board.runs = [{ id: 'index', label: 'Index the project', status: 'running' }];
board.addEventListener('lr-run-cancel', event => {
// Demo only: your app cancels the job and supplies updated records.
console.info('Cancellation requested for', event.detail.runId);
});
document.body.append(board);