SP.Field.direction property (sp.js)

Gets or sets a value that specifies the reading order of the field.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.Field.get_direction ()
var value = SP.Field.set_direction ()

Return value

Type: String

A string that contains LTR if the reading order is left-to-right, RTL if it is right-to-left, or none.

Remarks

Its value is implementation-specific to the client used to browse instances of this field.

REST resource endpoint

See Field resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists(listid)/fields(fieldid)/direction

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/fields(fieldid)/direction

GET syntax

GET http://<sitecollection>/<site>/_api/web/lists(listid)/fields(fieldid)/direction