Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Div
classtutorial-linear-nav
Span
classtutorial-nav-left

PrevPrevious: Pick a component type

Span
classtutorial-nav-centre

Up to overview

Span
classtutorial-nav-right

Next: Model Components

...

Div
classfloatRight
Panel
borderColor#ccc
bgColor#fff
titleSee Also
borderStylesolid

Component Grades
fluid.defaults
Options Merging for Infusion Components
Inversion of Control (IoC)
Component Lifecycle and autoInit

...

The options you define for your component will be completely dependent on what your component does. Integrators can override your defaults when they instantiate the component, to customize its appearance or behaviour. The Framework will take care of merging the integrator's values with your defaults.

We'll go through some examples of options, to give you an idea of what they're all about.

...

Example: Inline Edit

The Infusion Inline Edit component uses a tooltip and defines (among other things) defaults for the delay before the tooltip appears, the text to display - even whether or not to enable it at all:

...

Example: Progress

The Infusion Progress component uses jQuery animations to show and hide a progress bar. The defaults include objects that are passed to jQuery to configure the animations:

...

Div
classtutorial-linear-nav
Span
classtutorial-nav-left

PrevPrevious: Pick a component type

Span
classtutorial-nav-centre

Up to overview

Span
classtutorial-nav-right

Next: Model Components