node-red-contrib-powerbi
Version:
A PowerBI API interaction node-red module which allows to interact with PowerBI service.
48 lines (46 loc) • 1.77 kB
HTML
<script type='text/javascript'>
RED.nodes.registerType('powerbi-dataset', {
category: 'powerbi',
paletteLabel: 'dataset',
color: '#F2C718',
defaults: {
connection: {value: '', type: 'powerbi-connection', required:true},
name: { value: '' },
operation: { value: '', required: true }
},
inputs: 1,
outputs: 2,
outputLabels: ['stdout', 'stderr'],
icon: 'powerbi-logo.png',
label: function() {
return this.name||'datasets operations';
}
});
</script>
<script type='text/x-red' data-template-name='powerbi-dataset'>
<div class='form-row'>
<label for='node-input-connection'><i class='icon-tag'></i>PowerBI Connection</label>
<input type='text' id='node-input-connection' placeholder='Connection'>
</div>
<div class='form-row'>
<label for='node-input-name'><i class='icon-tag'></i> Name</label>
<input type='text' id='node-input-name' placeholder='Name'>
</div>
<div class='form-row'>
<label for='node-input-operation'><i class='icon-tag'></i>Operation Type</label>
<select id='node-input-operation' placeholder='Operation Type'>
<option value='bindtogateway'>Bind to gateway</option>
<option value='createdataset'>Create Dataset</option>
<option value='getdatasets'>Get Datasets</option>
<option value='getdataset'>Get Dataset</option>
<option value='getdatasetrefreshhistory'>Get Dataset Refresh History</option>
<option value='refreshdataset'>Refresh Dataset</option>
<option value='takeover'>Takeover a Dataset</option>
</select>
</div>
</script>
<script type='text/x-red' data-help-name='powerbi-dataset'>
<p>
A PowerBI node that helps you interact with the PowerBI Service API to manage dataset refreshes.
</p>
</script>