Class: WrappedSample

@bldr/vue-plugin-media~WrappedSample

Wrap a sample with some meta data (mostly a custom title). Allow different input specifications

new WrappedSample (spec)

Name Type Description
spec Object | String

Different input specifications are possible:

  1. The sample URI as a string (for example: Fuer-Elise_HB).
  2. An object with the mandatory property uri (for example: { uri: 'Fuer-Elise_HB'}).
  3. An instance of the class Sample.

Members

isTitleSet Boolean

True if the title is set manually.

This specification sets the property to true. { title: 'My Title', uri: 'id:Fuer-Elise' }

sample

We have to use a getter, because the sample may not be resolved at the constructor time.

title

We have to use a getter, because the sample may not be resolved at the constructor time.

title_ String private

The manually set title.

uri String