Class: GrabFromObjects

@bldr/vue-app-presentation/lib.GrabFromObjects

Grab / select values from two objects. The first object is preferred. The first object can be for example props and the second a object from the media server.

new module:@bldr/vue-app-presentation/lib.GrabFromObjects (object1, object2, markup)

Name Type Default Description
object1 Object
object2 Object
markup Boolean true

Apply markupToHtml() to the values of the second object.

Methods

multipleProperties (properties)object

Grab multiple properties.

Name Type Description
properties Array

An array of property names.

Returns:
Type Description
object
  • A new object containing the key and value pairs.

property (property)Mixed

Grab a value from two objects.

Name Type Description
property String

The name of property to look for

Returns:
Type Description
Mixed