new SSViewFull(photo)
Create new SSViewFull
Parameters:
Name | Type | Description |
---|---|---|
photo |
app.SSPhoto | An app.SSPhoto |
- Source:
Properties:
Name | Type | Description |
---|---|---|
image |
Element | paper-image |
author |
Element | label |
time |
Element | label |
location |
Element | Geo location |
model |
Object | template item model |
Extends
Methods
-
_hasAuthor() → {boolean}
-
Does a photo have an author label to show
- Inherited From:
- Source:
Returns:
true if we should show the author
- Type
- boolean
-
_hasAuthorLabel() → {boolean}
-
Does a view have an author label set
- Inherited From:
- Source:
Returns:
true if author label is not empty
- Type
- boolean
-
_hasLocation() → {boolean}
-
Does a photo have a geolocation
- Inherited From:
- Source:
Returns:
true if geolocation point is non-null
- Type
- boolean
-
_hasLocationLabel() → {boolean}
-
Does a view have an location label set
- Inherited From:
- Source:
Returns:
true if location label is not empty
- Type
- boolean
-
_setAuthorLabel()
-
Set the author text
- Inherited From:
- Source:
-
_setLocationLabel()
-
Set the geolocation text
- Inherited From:
- Source:
-
_setTimeStyle()
-
Set the style for the time label
- Inherited From:
- Source:
-
_setUrl()
-
Set the url
- Inherited From:
- Source:
-
<private> _super500px()
-
Add superscript to the label for 500px photos
- Inherited From:
- Source:
-
isError() → {boolean}
-
Determine if a photo failed to load (usually 404 error)
- Inherited From:
- Source:
Returns:
true if image load failed
- Type
- boolean
-
isLoaded() → {boolean}
-
Determine if a photo has finished loading
- Inherited From:
- Source:
Returns:
true if image is loaded
- Type
- boolean
-
render()
-
Render the page for display
- Overrides:
- Source:
-
setElements(image, author, time, location, model)
-
Set the elements of the view
Parameters:
Name Type Description image
Element paper-image, photo
author
Element div, photographer
time
Element div, current time
location
Element div, geolocation text
model
Object template item model
- Inherited From:
- Source:
-
setPhoto(photo)
-
Set the photo
Parameters:
Name Type Description photo
app.SSPhoto a photo to render
- Inherited From:
- Source: