Hi Guys,
i'm starting to create some custom nodes. Now i want to make a config node. I saw the example in the docs here. But do i create new Projekt like node-red-contrib-testNode-config? Or do i implements the config html/ js to the existing node? Have someone maybe an example on github?
you can create that config node in the same html/js or in a different one, as you like. No need for a new project.
Look at the mqtt core node for example, where the mqtt-broker
is a config node
<!--
Copyright JS Foundation and other contributors, http://js.foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<script type="text/x-red" data-template-name="mqtt in">
<div class="form-row">
<label for="node-input-broker"><i class="fa fa-globe"></i> <span data-i18n="mqtt.label.broker"></span></label>
<input type="text" id="node-input-broker">
</div>
<div class="form-row">
<label for="node-input-topic"><i class="fa fa-tasks"></i> <span data-i18n="common.label.topic"></span></label>
This file has been truncated. show original
system
Closed
3 August 2020 07:43
3
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.