.outerWidth()

  • function
FuncUnit.prototype.outerWidth  

outerWidth([outerWidth] [,timeout] [,success] [,message])

Gets an element's outerWidth or waits until it equals a specified value.

// gets the outerWidth
F("#foo").outerWidth();

// waits until the outerWidth is 100
F("#foo").outerWidth(100)

Parameters

  1. outerWidth {Number | function()}Optional

    If provided uses this as a check before continuing to the next action. Or you can provide a function that returns true to continue to the next action.

  2. timeout {Number}Optional

    overrides FuncUnit.timeout. If provided, the wait will fail if not completed before this timeout.

  3. success {function()}Optional

    a callback that will run after this action completes.

  4. message {String}Optional

    if provided, an assertion will be passed when this wait condition completes successfully

Returns

{String | funcUnit}

if outerWidth is provided, returns the funcUnit selector for chaining, otherwise returns the outerWidth of the selector.