/**
* @author [Tristan Valcke]{@link https://github.com/Itee}
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
*
* @file Todo
*
* @example Todo
*
*/
import Vue from 'vue'
import {
TIdFactory,
TIdFactoryType
} from '../../../utils/TIdFactory'
const IdFactory = new TIdFactory( TIdFactoryType.String, 't-container-justified-' )
export default Vue.component( 'TContainerJustified', {
template: `<!-- TContainerJustified Start -->
<TContainer
:id=computeId
class="tContainer tContainerJustified"
:height=height
:width=width
:orientation=orientation
:expand=expand
:wrapContent=wrapContent
vAlign="justified"
hAlign="justified"
wAlign="justified"
:overflow=overflow
:overflowX=overflowX
:overflowY=overflowY
>
<slot></slot>
</TContainer>
<!-- TContainerJustified End -->`,
props: {
id: {
type: String,
default: IdFactory.createId()
},
height: {
type: Number
},
width: {
type: Number
},
orientation: {
type: String,
default: ''
},
expand: {
type: Boolean,
default: false
},
wrapContent: {
type: Boolean,
default: false
},
overflow: {
type: String
},
overflowX: {
type: String
},
overflowY: {
type: String
}
},
computed: {
computeId () {
if ( this.id ) {
return this.id
} else {
return IdFactory.createId()
}
}
}
} )