Skip to content

octoblu/angular-meshblu-device-editor

Repository files navigation

angular-meshblu-device-editor

An Angular directive for editing Meshblu devices.

Bower Build Status Code Climate

Install

Install with bower:

bower install --save angular-meshblu-device-editor

Directives

Device Message Schema Container

To render a form based on a device's message schema:

<device-message-schema-container
  device="controller.device"
  message="controller.message"
  selected-schema-key="controller.selectedSchemaKey"></device-message-schema-container>

Arguments

Param Type Details
device object A meshblu device containing either an old style messageSchema or a new style schemas.message property
message object The message data. This will be modified as the user fills in the form
selected-schema-key string The key corresponding to the currently selected schema